Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Backup Your WordPress Site (5 Easy Ways)

Unexpected events like malware attacks or accidental plugin deletions can seriously harm your website. That’s why having a backup of your WordPress site is so important.

When you regularly backup WordPress, you can protect your data from security risks and human errors. If something goes wrong, you will be able to restore a saved version of your site easily.

Over the years, our team has managed countless websites and relied on backups to recover from various problems. So, we know firsthand how important it is to protect your hard work and prevent costly downtime.

In our experience, using a plugin like Duplicator to create your site backups is the easiest and most straightforward approach. But if you’d rather back up your site manually, there are several ways to do that, too.

That’s why in this article, we will show you how to back up your WordPress site using five different methods.

Backup Your WordPress Site (4 Easy Ways)

Why Back Up Your WordPress Website?

As a WordPress website owner, you need to protect your data from unexpected events. Creating a website backup is one way to do this.

Security threats like hackers, malware, and phishing attacks can compromise your site. Additionally, human errors, plugin conflicts, and server failures can also put your site at risk. Without a backup, recovering your site can be challenging.

A WordPress backup saves a copy of your site’s important files, folders, and databases. This includes your content, plugins, themes, images, videos, settings, and other information. You can easily use the backup to restore your website in case you get locked out because of an error or cyberattack.

However, WordPress doesn’t offer any automatic backups. You can either manually back up using your hosting provider’s cPanel or an FTP client. Personally, we recommend using a plugin as it is much easier and gives you more control, making it a beginner-friendly solution.

WordPress Backup Best Practices for a Secure Website

Regularly backing up your WordPress site is crucial for maintaining security, preventing data loss, and avoiding issues from plugin or update failures. Backups act as a safety net, allowing you to quickly restore your site if anything goes wrong.

However, before you begin creating backups for your website, it’s important to understand WordPress backup best practices. The following tips will help you streamline the backup process, ensuring it’s both effective and smooth:

  1. Choose the Right Backup Solution: You should always use reliable backup plugins such as Duplicator or UpdraftPlus. These tools can automate the backup process and provide options for both manual and scheduled backups.
  2. Back Up Regularly: It is crucial to schedule regular backups (daily, weekly, or monthly) based on how frequently you update your site. For high-traffic or frequently updated sites, we recommend daily backups.
  3. Store Backups in Multiple Locations: You should never rely on a single backup location. It’s best to store backups in multiple locations, such as cloud storage (Google Drive, Dropbox, or Amazon S3) and a local hard drive. This ensures you can recover your site even if one WordPress backup fails.
  4. Include Both Files and Database: You’ll want to ensure that your backup includes your WordPress files (themes, plugins, uploads) and your database (content, settings, user information). Doing this will help you restore your site fully if something goes wrong.
  5. Test Your Backups: It is important to regularly test your backups by restoring them to a staging environment. This practice confirms that your backups are working correctly and that you can rely on them in case of an emergency.
  6. Secure Your Backups: You should protect your backup files with strong passwords and encryption, especially if they contain sensitive information. Ensure that access to backup locations is restricted to authorized users only.
  7. Schedule Backups During Low Traffic Hours: Another important WordPress backup best practice is to schedule backups during low-traffic times to minimize the impact on your site’s performance.
  8. Stay Updated: You must always keep your WordPress core, themes, and plugins updated. Regular updates reduce vulnerabilities that could compromise your site and make backups more effective.

That said, let’s see how you can back up WordPress using different methods. You can click the links to jump ahead to your preferred method:

Method 1: Backup a WordPress Site Using a Plugin (Recommended)

The easiest way to create backups is by using Duplicator. It is the best WordPress backup plugin that’s used by over 1,500,000 professionals. With Duplicator, you’ll be able to easily back up, migrate, and clone your WordPress website.

Note: If you’re interested in an in-depth analysis of all the features this backup plugin has to offer, you can check out our full Duplicator review.

For this tutorial, we’ll use the premium plan because it includes more features, such as scheduled backups, disaster recovery links, cloud storage integration, migration tools, and more. However, you can also use the free version to get started.

First, you will need to install and activate the Duplicator Pro plugin. If you need help, then please see our guide on how to install a WordPress plugin.

Upon activation, visit the Duplicator Pro » Settings page from your WordPress admin panel and switch to the ‘General’ tab. Go ahead and enter the license key, which you can find in the account area.

Add Duplicator license key

Next, head over to the Duplicator Pro » Backups page from the WordPress dashboard.

From here, simply click the ‘Add New’ button at the top.

Click Add New button to build a backup

On the next screen, you will need to enter a name for your Duplicator backup. For this, you can use dynamic tags provided by the plugin. For instance, you can add the date and time to your backup’s name using tags to make recognition easy for you.

This will help you find the folder when you need to restore your website.

Add your backup's name format

After that, expand the ‘Storage’ section to add another storage location for your backup. The plugin will use the default location to save your WordPress backup files.

For this tutorial, we will use the default location. However, you can click the ‘Add Storage’ link and add a new location like Dropbox or Google Drive.

Choose your backup's storage location

Next, expand the ‘Backups’ tab. Here, you will need to choose the ‘Full Site’ option as the preset. This will ensure you create a backup of your entire WordPress site, including the database, plugins, themes, media, and more.

However, if you want to exclude specific files, simply check the ‘File Filter’ option. Then, add the file’s name and location to remove it from the backup.

Choose full site as backup preset

Next, you can scroll down to the ‘Installer’ section. These are optional settings that are filled in when the backup is installed.

You can simply click the ‘Next’ button and leave this section as it is.

Configure Installer section

The plugin will now perform a scan and make sure everything is in order to create a Duplicator backup of your site.

It will show a ‘Good’ evaluation if everything checks out or show a warning so you can quickly fix the issue before backing up the website.

Next, you can click the ‘Create Backup’ button at the bottom.

Click create backup button

Duplicator will now start building your site’s backup.

Once it’s done, you can visit the Duplicator Pro » Backups page from the dashboard to view it. Here, go ahead and click the ‘Download’ option and then select the ‘Both Files’ option.

Download your backup file

This will download the zip file and the installer file onto your computer. You can then use these files as backup and easily restore your site in case of a cyberattack or a critical error.

Create a Disaster Recovery Link to Restore Your Website

Another advantage of using Duplicator is that it lets you set up a disaster recovery link for your website. This link helps you restore your backup if your website experiences a massive failure. In a worst-case scenario, you will still be able to easily return to the last functioning version of your website.

To do this, you need to visit the Duplicator Pro » Backups page from the WordPress admin panel and click the plus icon in the corner to expand the backup details. After that, simply click the ‘Disaster Recovery’ option.

Click the Disaster Recovery option

This will open a new prompt on the screen.

Go ahead and click the ‘Set Disaster Recovery’ button from here.

Click Set Disaster Recovery button

Duplicator will now set up disaster recovery for your site. Once that is done, you will see a notice at the top of the page where you have to click the ‘Download Launcher’ button.

Now, in case of an emergency, you can easily recover a restored version of your site by clicking on this downloaded file on your computer. You can even click the ‘Copy Link’ button to copy the recovery URL.

We recommend storing this URL in a secure location

Click the Download Launcher button

To recover your site, you will have to enter the recovery URL in the browser. This will automatically launch the recovery wizard. You can then follow the steps to restore your site from the backup.

Automatically Scheduling WordPress Website Backups

With Duplicator Pro, you can also automatically schedule backups for your website. This way, you will always have the latest website backup to work with. Plus, it helps save time as you don’t have to manually create a backup.

To start, go to the Duplicator Pro » Schedule Backups page from the WordPress dashboard and click the ‘Add New’ button.

Click Add New to build a schedule

After that, you can enter a name for your backup schedule.

The plugin also lets you select a template, which allows you to customize your backup and choose which files to back up. If you want a full backup, then we recommend leaving the template setting to default.

Add a name for schedule and template

Next, you can scroll down and select the storage location for your scheduled backups. The plugin will use the default location, but you can add another location, like Dropbox, OneDrive, or Google Drive.

You can also select the frequency of backups. For instance, you can set up automatic backups on an hourly, daily, weekly, or monthly basis. For this tutorial, we’ve set the backup repeats to weekly.

Choose storage location and backup time

After that, you can select a start time for your backup.

You’ll also need to ensure that the ‘Enable This Schedule’ checkbox is selected.

Select a time and enable the schedule backup

Once that’s done, simply click the ‘Save Schedule’ button.

Duplicator will now automatically back up your WordPress site on the set day and time. This way, you’ll have a fresh backup to restore if anything goes wrong.

Method 2: Manually Backup a WordPress Site Using cPanel

If you want to manually back up your WordPress site using your WordPress hosting service’s cPanel, then this method is for you.

We will be using Bluehost for this tutorial because it is our preferred provider, and we have a lot of experience using it. Plus, it’s officially recommended by WordPress.

Keep in mind that the settings may vary depending on the hosting service you are using.

Note: Interested in switching web hosting providers? Check out our guides on how to choose the best WordPress hosting and how to move WordPress to a new host.

First, you will need to log in to your hosting provider’s cPanel. In Bluehost, you can find it under your site’s Advanced settings. Just find the ‘cPanel’ section and click on the ‘Manage’ button.

Open cPanel in Bluehost

Once the cPanel opens, go to the ‘Files’ section.

Then click the ‘File Manager’ option.

Open file manager in cpanel

In a new tab or window, the file manager will now open.

Next, you have to select the public_html folder from the menu on the left and click the ‘+’ button to expand it.

Go to public_html folder

From here, choose the folder with your website name and click the ‘Compress’ option at the top.

A new window will now pop up. Go ahead and select the ‘Zip Archive’ option and then click the ‘Compress Files’ button.

Select zip archive and compress

Your website files will now start to compress into a zip file.

The hosting service will also show a compression result. After that, you can simply click the ‘Close’ button.

Close the compression results

Then, choose the zip file that you just created. It will be located in the public_html folder.

Next, simply click the ‘Download’ option at the top.

Download the compression file

You can then save the compression file in a secure location.

Now, whenever your site goes down due to an error or security issues, you can use the compressed file as a backup and easily restore your content.

Method 3: Manually Backup WordPress Databases

Using your WordPress hosting services’ cPanel, you can also back up different WordPress databases. However, this is a time-consuming process because you’ll need to import multiple tables manually.

We will be using Bluehost for this tutorial, but keep in mind that steps will vary depending on your web host.

First, log in to your hosting service’s cPanel. Next, head to the cPanel from your site’s settings and click the ‘phpMyAdmin’ option.

Selecting phpMyAdmin on cPanel

Once phpMyAdmin opens, you have to select a database from the menu on your left.

Then, choose the tables you’d like to back up and click the ‘Export’ button at the top.

Export database tables

On the next screen, you can keep the ‘Export method’ as ‘Quick’ and select ‘SQL’ for the ‘Format’ section.

Once that’s done, go ahead and click the ‘Go’ button.

Export database as SQL

You can now save the SQL file on your computer in a secure location as a backup.

To restore a database, you’ll just need to import the SQL file into the phpMyAdmin panel. For more details, see our tutorial on how to make a WordPress database backup manually.

Method 4: Manually Backup a WordPress Site Using FTP

If you don’t want to use a backup plugin or access the cPanel, then you can back up a WordPress site using an FTP client.

There are many FTP clients you can use for Mac and Windows. For this tutorial, we will use FileZilla.

First, you’ll need to connect to your site using the FTP software. You can see our guide on what is FTP and how to use it for more details.

Once you’re connected, simply head to the root directory of your website from the panel on your right. This is where you’ll find folders like wp-content, wp-admin, and other important files like wp-config and .htaccess.

View the root directory in FTP

Next, you can right-click any folder or file you want to back up.

After that, simply click the ‘Download’ option.

Downloading the WordPress .htaccess file

You can save the files and folders from a live website to your local host or computer as backups.

This way, you can easily recover your website by uploading the saved files using the FTP client.

Method 5: Use WPBeginner Maintenance Services for Site Backups

If you are a beginner and the methods above seem too complex, then you may want to opt for WPBeginner’s Maintenance Services instead.

With over 16 years of experience in creating and managing WordPress sites, our team of experts can handle all the behind-the-scenes work to keep your website running smoothly.

WPBeginner Pro Maintenance Services

We offer 24/7 support, continuous uptime monitoring, and regular updates to the WordPress core, themes, and plugins. Additionally, we back up your site to the cloud regularly, so if anything goes wrong, we can quickly restore it to a previous version.

Beyond that, we remove malware, prevent slow loading times, and focus on optimizing your site’s performance. WPBeginner’s Maintenance Services provide an all-in-one solution to protect your website, manage backups, perform updates, and much more.

With affordable pricing, we are a great choice for small businesses. For more information, check out our WPBeginner Pro Services page.

Bonus: How to Restore a WordPress Site From Backup

Now that you’ve created a WordPress site backup, the next step is to restore it in case you encounter a critical error or your site is compromised.

To do this, you will first need to clean your site and delete all the WordPress files. You can do that by connecting an FTP client and removing all the folders and files. After that, you have to install WordPress again and log in to your site.

Once that is done, you are now ready to restore your WordPress backups.

If you are using the Duplicator Pro plugin, then it is very easy to upload the backup. Simply head to the Duplicator Pro » Import Backups page from your WordPress dashboard and drag and drop the backup file.

Select and import your backup file

From here, simply follow the steps in the import wizard to recover your website. You can also see our step-by-step guide on how to restore WordPress from a backup to learn more.

We hope this article helped you learn how to back up your WordPress site. You may also want to see our guide on how to back up a WordPress site to Dropbox and our tutorial on how to connect Google Drive to your WordPress media library.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

18 CommentsLeave a Reply

  1. Syed Balkhi

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Samuel

    I’ve learned the hard way that regular WordPress backups are essential after experiencing a major site crash, I now prioritize backup testing. I restore backups on staging sites to ensure functionality and data integrity before pushing changes live.
    I use UpdraftPlus to automatically backup my sites daily, and store them on Google Drive for added security.

  3. David Lim

    According to a survey, data loss is a serious problem and 54% of website owners have experienced data loss, while only 10% perform daily backups.

    So, this is why you should create backups.

  4. Absalom Singagwari

    site backups are a critical function of any website. Its critical that one uses a reliable and easy to use method to backup their website because over and above the backing up, there is need to ensure the backup actually works, backup integrity as some call it. In my view, the best way to backup would be to use a reliable plugin that does all the dirty work for you. Its also critical to automate the process so that even when you forget, you are able to backup the site even when you are away!

  5. THANKGOD JONATHAN

    These methods such as plugins, manual backups, and cloud storage services are really good options.
    However, for me, I refer the plugin method and then automat it with Gdrive.

  6. Mrteesurez

    Thanks for this post, it really helpful to saves years of hard work.

    But, do backup using Cpanel included the media files like images or audio in the backed up files ??

    Is exporting contents just from setting > tool > export can be considered as backup ??

    • WPBeginner Support

      The cPanel backup would include the files in your media folder but using tools>Export would not backup the media files as that would store where to grab the files from and not the files themselves.

      Admin

      • Mrteesurez

        “as that would store where to grab the files from and not the files themselves”

        What do you mean ??
        because I have exported media files from a site and imported them into another and it worked well and showed those media files.

        • WPBeginner Support

          The export file would point to where on the old site your new site would be able to download the files, the export file does not include the media files themselves.

  7. Ralph

    Thank you for this guide about such an important thing. Lack of backup can destroy years of work. Everybody should do backups!
    Can this Duplicator plugin save and send the backup of my site to Google Drive automatically?

    • WPBeginner Support

      You can set up an automatic backup with the plugin :)

      Admin

    • Jiří Vaněk

      Yes, and it works like magic. I’ve been using Duplicator for several months, and you can set up either manual or automatic backups to Google Drive. In the first step, you just need to link Google Drive with Duplicator, or rather with your website, but the process is really very simple. Then, on Google Drive, you select the folder where Duplicator will place the backups, either manually or automatically, as you set it up. You can also set the maximum number of backups that will be stored on the drive. As a bonus, you get weekly email reports about the backups.

  8. Jiří Vaněk

    Great! I’ve always been used to manually backing up data—downloading data via FTP, creating a MySQL dump, and storing it all somewhere on the cloud. The older I get and the more websites I manage, the more I consider it fantastic to automate this task and reduce the chance of human error. There’s nothing worse than something breaking and not having a backup.

  9. Ahmed Omar

    thank you for this post about this important part.
    but here you explained about cPanel of blue host, is it the same on site ground.
    and if there an option to back up the site regularly?

    • WPBeginner Support

      SiteGround has a different interface than BlueHost but should still give access to a file manager. Plugins and some hosting providers have tools for scheduling backups to automate it for you.

      Admin

  10. Moinuddin waheed

    I have used updraft plus for back up of almost all my websites and found it very easy and smooth.
    This plugin takes care all of the things that needs to be taken into consideration.
    The interface is beginners friendly and anyone can use it with ease.
    I have not used duplicator so far but will give it a try in the future.

  11. Linda Rogers

    Your restoration piece seems to assume that the WP installation is still accessible. I had a site hacked and the installation was no longer accessible. After deleting the hacked site and doing a new Wordpress install. I couldn’t restore the site from either my Duplicator or Updraft backups. I think that was because I had a new database. Hopefully this never happens again but, what about that situation.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.